﻿using Microsoft.EntityFrameworkCore;
using SP.Domain.Model;

namespace SP.EFcore
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions<MyDbContext> options) : base(options)
        {
        }
        public DbSet<UserTable> UserTable { get; set; }
        public DbSet<RoleTable> RoleTable { get; set; }
        public DbSet<RoleUserRelation> RoleUserRelation { get; set; }
        public DbSet<PermissionsTable> PermissionsTable { get; set; }
        public DbSet<RolePermissionTable> RolePermissionTable { get; set; }
        public DbSet<FormTable> FormTable { get; set; }
        public DbSet<LogMessageTable> LogMessageTable { get; set; }
        public DbSet<TimingTable> TimingTable { get; set; }
    }
}